dsh-plugin-jina-json-repair:在 llm/stream 層修復 Jina MCP 工具調用的畸形 JSON
DSH 在流結束時解析 DeepSeek 的 tool_use 參數,Jina MCP 的 read_url、search_web 常因模型輸出缺引號等畸形 JSON 觸發 MALFORMED_RESPONSE 導致整輪中止。frederick-wang 的 dsh-plugin-jina-json-repair(0.1.2,MIT)掛載於 llm/stream,用 jsonrepair 修復並經請求 schema 嚴格校驗後合成 tool-calls 放行。安裝:dsh plugin --profile dsh-tui add github:frederick-wang/dsh-plugin-jina-json-repair,重啓後生效;可在 cordis.patch.yml 擴展 tools 列表。
閱讀全文